import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity({ name: 'users' })
class users {
  @PrimaryGeneratedColumn({ zerofill: true })
  userId: number;

  @Column({})
  loginCode: string;

  @Column({ length: 20 })
  username: string;

  @Column({ length: 20 })
  email: string;

  @Column({ length: 255 })
  password: string;

  @Column({ default: 0 })
  status: number;
}

export {
  users as userEntity,
};
